<?php
/**
 * Created by 张彪.
 * User: 小马出行
 * Date: 2018/8/13
 * Time: 11:20
 */
return array(
    'es'=>array(
        'actual_param'=>array('index' => 'location', 'type' => 'actual'),//司机实时位置
        'index_param'=>array('index' => 'trajectory', 'type' => date('Y-m-d')),//所有司机每天的轨迹日志
        'mappings' => array(
            "_default_" => array(
                "properties"=>array(
                    "driver_id"=>array("type"=>"integer"),
                    "auth_type"=>array("type"=>"integer"),
                    "speed"=>array("type"=>"double"),
                    "direction"=>array("type"=>"double"),
                    'coordinate'=>array('type'=>"geo_point")
                )
            ),
            /*"trajectory" => array(
                "properties"=>array(
                    'created_at'=>array('type'=>"date","format"=>"yyyy-MM-dd HH:mm:ss||yyyy-MM-dd||epoch_millis"),
                )
            )*/
        )
    )
);